@isTest
private class InstrumentFollowControllerTest {

     static testMethod void testMethod1() {

            Account acc1 = TestUtils.createAccount();
        acc1.AccountNumber = '0001';
        insert acc1;

     	InstrumentDeliveryApplication__c ida = new InstrumentDeliveryApplication__c();
        ida.InvoicingCustomers__c = acc1.Id;
        
     	ida.RecordTypeId = Utils.getRecordTypeIdByDevNameAndObjName('AbnormalSalesOutlet', 'InstrumentDeliveryApplication__c');

     	insert ida;


     	 PageReference page = new PageReference('/apex/InstrumentFollw?id=' + ida.Id );
        System.Test.setCurrentPage(page);
        InstrumentFollowController  cmc = new InstrumentFollowController();
        cmc.init();


        Map<String,String> data = new Map<String,String>();
        data.put('nccode', '111111');
        data.put('sl', '2');
        data.put('sl_ck', '1');
        data.put('sl_sale', '1');
        data.put('unitcode', 'MKSW');
        data.put('price', '1');
        List<Object> l = new List<Object>();
        l.add(data);
        cmc.saveJson = EncodingUtil.urlEncode(JSON.serialize(l), 'UTF-8');
        cmc.save();
        cmc.sync();


     }
}